projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d79fd6c
)
Allow for the :: operator in C++ "enum class" declarations.
author
Alan Mackenzie
<acm@muc.de>
Sat, 25 Feb 2017 14:53:59 +0000
(14:53 +0000)
committer
Alan Mackenzie
<acm@muc.de>
Sat, 25 Feb 2017 14:53:59 +0000
(14:53 +0000)
* lisp/progmodes/cc-engine.el (c-backward-typed-enum-colon): Check for
"::".
lisp/progmodes/cc-engine.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/cc-engine.el
b/lisp/progmodes/cc-engine.el
index dfd7aebd5693f90629fa41334d6513834e306249..a5ade09791aa48656c00ec0a69c3578f51ac5882 100644
(file)
--- a/
lisp/progmodes/cc-engine.el
+++ b/
lisp/progmodes/cc-engine.el
@@
-10130,6
+10130,8
@@
comment at the start of cc-engine.el for more info."
(or (not (looking-at "\\s)"))
(c-go-up-list-backward))
(cond
+ ((looking-at "::")
+ t)
((and (eql (char-after) ?:)
(save-excursion
(c-backward-syntactic-ws)